Skip to content

Conversation

@dafnamatsry
Copy link
Collaborator

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@dafnamatsry dafnamatsry marked this pull request as ready for review December 31, 2025 12:54
@dafnamatsry dafnamatsry force-pushed the dafna/update-mock-staking-contract branch from 4ec0035 to 308b0f6 Compare January 4, 2026 10:05
@dafnamatsry dafnamatsry force-pushed the dafna/update-mock-staking-contract branch 3 times, most recently from de9d1e1 to 80d48d6 Compare January 4, 2026 12:26
Copy link
Collaborator

@matanl-starkware matanl-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matanl-starkware reviewed 9 files and all commit messages, and made 3 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dafnamatsry).


crates/apollo_staking/src/contract_types.rs line 59 at r2 (raw file):

impl TryFromIterator<Felt> for ContractStaker {
    type Error = RetdataDeserializationError;
    fn try_from_iter<T: Iterator<Item = Felt>>(iter: &mut T) -> Result<Self, Self::Error> {

Worth adding a comment describing the how the Felts supposed to be when everything is OK

Code quote:

fn try_from_iter

crates/apollo_staking/src/contract_types.rs line 124 at r2 (raw file):

        })?;

        let mut result = Vec::new();

Reserve capacity

Code quote:

Vec::new()

crates/apollo_staking/src/contract_types.rs line 156 at r2 (raw file):

#[cfg(test)]
impl From<&Staker> for ContractStaker {

Why do we need the type Staker?

Code quote:

Staker

@dafnamatsry dafnamatsry force-pushed the dafna/update-mock-staking-contract branch from 80d48d6 to d1a01a5 Compare January 5, 2026 11:26
Copy link
Collaborator Author

@dafnamatsry dafnamatsry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dafnamatsry made 3 comments.
Reviewable status: 8 of 9 files reviewed, 2 unresolved discussions (waiting on @matanl-starkware).


crates/apollo_staking/src/contract_types.rs line 59 at r2 (raw file):

Previously, matanl-starkware (Matan Lior) wrote…

Worth adding a comment describing the how the Felts supposed to be when everything is OK

Done.


crates/apollo_staking/src/contract_types.rs line 124 at r2 (raw file):

Previously, matanl-starkware (Matan Lior) wrote…

Reserve capacity

Done.


crates/apollo_staking/src/contract_types.rs line 156 at r2 (raw file):

Previously, matanl-starkware (Matan Lior) wrote…

Why do we need the type Staker?

It simplifies the get_committee interface by removing the Option from public key.

@dafnamatsry dafnamatsry force-pushed the dafna/update-mock-staking-contract branch from d1a01a5 to d5715dc Compare January 5, 2026 12:35
Copy link
Collaborator

@matanl-starkware matanl-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matanl-starkware reviewed 1 file and all commit messages, made 1 comment, and resolved 2 discussions.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dafnamatsry).


crates/apollo_staking/src/contract_types.rs line 156 at r2 (raw file):

Previously, dafnamatsry wrote…

It simplifies the get_committee interface by removing the Option from public key.

OK
So lets add also From<&ContractStaker> for Staker

@dafnamatsry dafnamatsry force-pushed the dafna/update-mock-staking-contract branch from d5715dc to 5196120 Compare January 6, 2026 08:02
Copy link
Collaborator Author

@dafnamatsry dafnamatsry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dafnamatsry made 1 comment.
Reviewable status: 7 of 9 files reviewed, all discussions resolved (waiting on @matanl-starkware).


crates/apollo_staking/src/contract_types.rs line 156 at r2 (raw file):

Previously, matanl-starkware (Matan Lior) wrote…

OK
So lets add also From<&ContractStaker> for Staker

Done.

Copy link
Collaborator

@matanl-starkware matanl-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matanl-starkware reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dafnamatsry).

Copy link
Collaborator

@matanl-starkware matanl-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dafnamatsry).

@dafnamatsry dafnamatsry force-pushed the dafna/update-mock-staking-contract branch from 5196120 to 520948f Compare January 6, 2026 12:01
@dafnamatsry dafnamatsry added this pull request to the merge queue Jan 6, 2026
Merged via the queue into main-v0.14.1-committer with commit c265179 Jan 6, 2026
23 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants